<?php 
	$this->load->view('header');
	$this->load->view('header_end');
	$this->load->view('part_view/mod_banner_header'); 
?>
<div id="block_menu_banner">
	<?php 
		$this->load->view('part_view/mod_menu_top'); 
	?>
</div>
<div id="content_block">
	<div id="left_column">
		<?php 
			$this->load->view('part_view/mod_check_search'); 
		?>
	</div>
	<div id="main_column">
		<h3 class="title_page">Liên Hệ</h3>
		<div class="contact_content">
		<?php
			$obj_data = get_page_news(17);
			foreach($obj_data as $data):
				echo $data['cnote'];	
			endforeach; 
		?>
		</div>
		<div class="error" style="margin:15px 0;"><?php echo $message; ?></div>
		<form name="frm_contact" id="frm_contact" method="post" action="<?php echo base_url().'index.php/contact/get_data' ?>">
		<table id="tbl_contact">
			<tr>
				<td style="width:150px" class="key"><?php echo $this->lang->line('lbl.contact_name'); ?>: <label class="valid_error">(*)</label></td>
				<td>
					<input class="txt validate[required]" type="text" name="txt_name" id="txt_name" value="" />
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_email'); ?>: <label class="valid_error">(*)</label></td>
				<td>
					<input class="txt validate[required,custom[email]]" type="text" name="txt_email" id="txt_email" value="" />
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_phone'); ?>:  <label class="valid_error">(*)</label></td>
				<td>
					<input class="txt validate[required] number" type="text" name="txt_hand_phone" id="txt_hand_phone" value="" />
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_company'); ?>: </td>
				<td>
					<input class="txt" type="text" name="txt_company" value="" />
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_address'); ?>: </td>
				<td>
					<input class="txt" type="text" name="txt_address" id="txt_address" value=""/>
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_subject'); ?>: </td>
				<td>
					<input class="txt" type="text" name="txt_title" value="" style="width:350px" class="validate[required]" />
				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_content'); ?>: <label class="valid_error">(*)</label> 
					<br><?php echo $this->lang->line('lbl.contact_allow_char'); ?>:<span id="limitTwo">500</span></p>
				</td>
				<td>
					<textarea class="txt validate[required]" name="txt_content" id="txt_content" rows="4" maxlength="500" showremain="limitTwo" style="width:350px"></textarea>

				</td>
			</tr>
			<tr>
				<td class="key"><?php echo $this->lang->line('lbl.contact_captcha'); ?>: <label class="valid_error">(*)</label> 
				</td>
				<td>
					<input name="txt_capt" type="text" id="txt_capt" value="" style="width:100px;" class="required"/>
				</td>
			</tr>
			<tr>
				<td class="key">&nbsp;</td>
				<td>
					<?php if(isset($img_cpt)) echo $img_cpt['image'];?>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" name="btn_submit" value="<?php echo $this->lang->line('lbl.contact_submit'); ?>" class="submit" style="width:100px; height:30px;" />
					<input type="hidden" name="hidden_img_cpt" id="hidden_img_cpt"  value = "<?php echo $hidden_cpt; ?>" />
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<?php 
	$this->load->view('part_view/mod_home_slide_bottom'); 
	$this->load->view('part_view/mod_footer_content'); 
?>
<script type="text/javascript" src="<?php echo base_url()?>js/maxlen_textarea/behaviour.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/maxlen_textarea/textarea_maxlen.js"></script>
<script> 
	jQuery(document).ready(function(){
		// binds form submission and fields to the validation engine
		jQuery("#frm_contact").validationEngine();
	});
</script>
<?php 
	$this->load->view('footer');
?>

